<div class="metcms_cont_left hidden-xs">
    <dl class="metlogo">
        <a href="javascript:void(0);">
            {notempty name="$is_eyou_authortoken"}
            <img src="__SKIN__/images/logo_ey.png?v={php}echo time();{/php}" alt="{$global.web_name|default=''}" title="{$global.web_name|default=''}">
            {else /}
            <img src="__SKIN__/images/logo.png?v={php}echo time();{/php}" alt="{$global.web_name|default=''}" title="{$global.web_name|default=''}" onClick="GetUploadify(1,'','adminlogo','adminlogo_call_back','{:U('Uploadify/upload_full')}');" size="30" hidefocus="true">
            {/notempty}
        </a>
    </dl>
    {volist name="menu" id="vo"}
    <dl>
    <!--<dt>内容</dt>-->
        {notempty name="vo.name"}<dt>{$vo.name}</dt>{/notempty}
        <dd class="sub-menu">
          {volist name="vo['child']" id="v2" key="k2"}
            {if condition="!empty($v2['op']) OR !empty($v2['url']) OR !empty($vo2['child'])"}
                {empty name="v2['child']"}
                <a href="{$v2.url|default='javascript:void(0);'}" {empty name="$v2.url"}data-param="{$v2.act}|{$v2.op}"{/empty} target="{$v2.target}"><i class="{$v2.icon|default='fa fa-minus'}"></i>{$v2.name}</a>
                {else/}
                <dl class="jslist" style="border-bottom:none;">
                    <dt><i class="{$v2.icon|default='fa fa-minus'}"></i>{$v2.name}<i class="fa fa-angle-right"></i>{if condition="$v2.op == 'Senior' and !empty($upgradeMsg)"}{/if}</dt>
                    <dd style="display: none;">
                        {volist name="v2['child']" id="v3" key="k3"}
                            {if condition="!empty($v3['op']) OR !empty($v3['url']) OR !empty($v3['child'])"}
                            <a href="{$v3.url|default='javascript:void(0);'}" {empty name="$v3.url"}data-param="{$v3.act}|{$v3.op}"{/empty} target="{$v3.target}"><i class="{$v3.icon|default='fa fa-minus'}"></i>{$v3.name}{if condition="$v3.op == 'Upgrade' and !empty($upgradeMsg)"}{/if}</a>
                            {/if}
                        {/volist}
                    </dd>
                </dl>
                {/empty}
            {/if}
          {/volist}
        </dd>
    </dl>
    {/volist}
</div>

<script type="text/javascript">
    function adminlogo_call_back(fileurl_tmp)
    {
        layer_loading("正在处理");
        var url = "{:U('Index/edit_adminlogo')}";
        $.post(url, {savepath:'adminlogo' ,filename:fileurl_tmp},function(res){
            if (1 == res.code) {
                layer.msg(res.msg, {icon:6, time:1000}, function(){
                    top.window.location.reload();
                });
            } else {
                layer.closeAll();
                layer.alert(res.msg, {icon:5});
            }
        });
    }
</script>